import 'package:flutter_shop/http/http.dart';
import 'package:flutter_shop/pages/base/common_result.dart';
import 'package:flutter_shop/pages/home/goods_detail/entity/goods_detail_data.dart';

///商品详情model
class GoodsDetailModel {
  ///获取商品详情信息
  Future<GoodsDetailData> getGoodsDetail(String goodsId) async {
    CommonResult<GoodsDetailData> result = await Http().post("getGoodDetailById", data: {"goodId": goodsId});
    return result.data;
  }
}
